<?php
namespace App\Http\Validate\Saleprice;

use App\Http\Validate\BaseValidate;

/**
 * 销售定价验证器
 */
class Saleprice extends BaseValidate {
    //验证规则
    protected $rule =[];
    //自定义验证信息
    protected $message = [];

    public function __construct($doaction='addbase'){
        if ($doaction=='addbase'){
            $this->rule =[
                'amount'=>'required',
                'limit_weight'=>'required',
            ];
            $this->message = [
                'amount.required'=>'基价不能为空',
                'limit_weight.required'=>'限制重量不能为空',
            ];
        }
    }
}
